/*
*	Developed by Leonardo Chatain and Pedro Dusso, at Universidade Federal do Rio Grande do Sul, Brasil, 2009/1
*	Source available at glpacman.codeplex.com
*/

#pragma once
#ifndef _PHANTOM_H_
#define _PHANTOM_H_
#include "character.h"
#include <iostream>
#include <GL/glut.h>

using namespace std;

class Phantom :
	public Character
{
private:
	bool zombie;

	static int globalColor;
	int color;

	bool imuneToPac;


public:
	Phantom(void);
	Phantom::Phantom(float x, float y);
	Phantom::Phantom(Point2D pos);
	Phantom::Phantom(Point2D newPos, Vector2D dir);
	~Phantom(void);

	void draw(bool pacSuper = false);

	inline bool isZombie() { return zombie; }
	inline void setZombie() { zombie = true; }
	inline void unsetZombie() { zombie = false; imuneToPac = true; linearSpeed = 1; }
	inline bool getImuneToPac() { return imuneToPac; }
	inline void setImuneToPac(bool i) { imuneToPac = i; }
};

#endif